package project.base.common.job

import com.xxl.job.core.biz.model.ReturnT
import com.xxl.job.core.handler.annotation.XxlJob
import org.slf4j.LoggerFactory
import org.springframework.stereotype.Component
import project.base.common.constant.JobHandlerConstants

/**
 * 执行任务类
 * @author 三味
 * @since 2022/3/3 15:33
 */
@Component
class DayJob {

    private val logger = LoggerFactory.getLogger(DayJob::class.java)

    @XxlJob(value = JobHandlerConstants.EVERY_DAY)
    fun everyDay(param: String?): ReturnT<String> {
        // 业务代码..
        return ReturnT.SUCCESS
    }
}
